﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;



namespace BUS
{
    public class SanBayBUS
    {
      
        SanBayDAO sbDao = new SanBayDAO();
        public DataTable LayDanhSach()
        {
            return sbDao.LayDSSanBay();
 
        }

        public void Them(SanBayDTO ma)
        {
            sbDao.Them(ma);
        }

        public void Xoa(int index)
        {
            sbDao.Xoa(index);
         
        }
        public void CapNhat(SanBayDTO sbDTO)
        {
           
            sbDao.CapNhat(sbDTO);
                
        }
       
    }




           
}
